Optimal. Leaf size=108 \[ \frac{d \log (x) (2 A b e-2 A c d+b B d)}{b^3}+\frac{(b B-A c) (c d-b e)^2}{b^2 c^2 (b+c x)}-\frac{A d^2}{b^2 x}-\frac{(c d-b e) \log (b+c x) \left (-2 A c^2 d+b^2 B e+b B c d\right )}{b^3 c^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.268295, antiderivative size = 108, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083 \[ \frac{d \log (x) (2 A b e-2 A c d+b B d)}{b^3}+\frac{(b B-A c) (c d-b e)^2}{b^2 c^2 (b+c x)}-\frac{A d^2}{b^2 x}-\frac{(c d-b e) \log (b+c x) \left (-2 A c^2 d+b^2 B e+b B c d\right )}{b^3 c^2} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*(d + e*x)^2)/(b*x + c*x^2)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 39.4812, size = 105, normalized size = 0.97 \[ - \frac{A d^{2}}{b^{2} x} - \frac{\left (A c - B b\right ) \left (b e - c d\right )^{2}}{b^{2} c^{2} \left (b + c x\right )} + \frac{d \left (2 A b e - 2 A c d + B b d\right ) \log{\left (x \right )}}{b^{3}} - \frac{\left (b e - c d\right ) \left (2 A c^{2} d - B b^{2} e - B b c d\right ) \log{\left (b + c x \right )}}{b^{3} c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(e*x+d)**2/(c*x**2+b*x)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.20759, size = 101, normalized size = 0.94 \[ \frac{\frac{(b e-c d) \log (b+c x) \left (-2 A c^2 d+b^2 B e+b B c d\right )}{c^2}+\frac{b (b B-A c) (c d-b e)^2}{c^2 (b+c x)}+d \log (x) (2 A b e-2 A c d+b B d)-\frac{A b d^2}{x}}{b^3} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*(d + e*x)^2)/(b*x + c*x^2)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.019, size = 199, normalized size = 1.8 \[ -{\frac{A{d}^{2}}{{b}^{2}x}}+2\,{\frac{d\ln \left ( x \right ) Ae}{{b}^{2}}}-2\,{\frac{{d}^{2}\ln \left ( x \right ) Ac}{{b}^{3}}}+{\frac{{d}^{2}\ln \left ( x \right ) B}{{b}^{2}}}-2\,{\frac{\ln \left ( cx+b \right ) Ade}{{b}^{2}}}+2\,{\frac{c\ln \left ( cx+b \right ) A{d}^{2}}{{b}^{3}}}+{\frac{\ln \left ( cx+b \right ) B{e}^{2}}{{c}^{2}}}-{\frac{\ln \left ( cx+b \right ) B{d}^{2}}{{b}^{2}}}-{\frac{A{e}^{2}}{c \left ( cx+b \right ) }}+2\,{\frac{Ade}{b \left ( cx+b \right ) }}-{\frac{Ac{d}^{2}}{{b}^{2} \left ( cx+b \right ) }}+{\frac{B{e}^{2}b}{{c}^{2} \left ( cx+b \right ) }}-2\,{\frac{Bde}{c \left ( cx+b \right ) }}+{\frac{B{d}^{2}}{b \left ( cx+b \right ) }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(e*x+d)^2/(c*x^2+b*x)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.704142, size = 223, normalized size = 2.06 \[ -\frac{A b c^{2} d^{2} -{\left ({\left (B b c^{2} - 2 \, A c^{3}\right )} d^{2} - 2 \,{\left (B b^{2} c - A b c^{2}\right )} d e +{\left (B b^{3} - A b^{2} c\right )} e^{2}\right )} x}{b^{2} c^{3} x^{2} + b^{3} c^{2} x} + \frac{{\left (2 \, A b d e +{\left (B b - 2 \, A c\right )} d^{2}\right )} \log \left (x\right )}{b^{3}} - \frac{{\left (2 \, A b c^{2} d e - B b^{3} e^{2} +{\left (B b c^{2} - 2 \, A c^{3}\right )} d^{2}\right )} \log \left (c x + b\right )}{b^{3} c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^2/(c*x^2 + b*x)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.280959, size = 348, normalized size = 3.22 \[ -\frac{A b^{2} c^{2} d^{2} -{\left ({\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{2} - 2 \,{\left (B b^{3} c - A b^{2} c^{2}\right )} d e +{\left (B b^{4} - A b^{3} c\right )} e^{2}\right )} x +{\left ({\left (2 \, A b c^{3} d e - B b^{3} c e^{2} +{\left (B b c^{3} - 2 \, A c^{4}\right )} d^{2}\right )} x^{2} +{\left (2 \, A b^{2} c^{2} d e - B b^{4} e^{2} +{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{2}\right )} x\right )} \log \left (c x + b\right ) -{\left ({\left (2 \, A b c^{3} d e +{\left (B b c^{3} - 2 \, A c^{4}\right )} d^{2}\right )} x^{2} +{\left (2 \, A b^{2} c^{2} d e +{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{2}\right )} x\right )} \log \left (x\right )}{b^{3} c^{3} x^{2} + b^{4} c^{2} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^2/(c*x^2 + b*x)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 18.1004, size = 367, normalized size = 3.4 \[ \frac{- A b c^{2} d^{2} + x \left (- A b^{2} c e^{2} + 2 A b c^{2} d e - 2 A c^{3} d^{2} + B b^{3} e^{2} - 2 B b^{2} c d e + B b c^{2} d^{2}\right )}{b^{3} c^{2} x + b^{2} c^{3} x^{2}} + \frac{d \left (2 A b e - 2 A c d + B b d\right ) \log{\left (x + \frac{- 2 A b^{2} c d e + 2 A b c^{2} d^{2} - B b^{2} c d^{2} + b c d \left (2 A b e - 2 A c d + B b d\right )}{- 4 A b c^{2} d e + 4 A c^{3} d^{2} + B b^{3} e^{2} - 2 B b c^{2} d^{2}} \right )}}{b^{3}} + \frac{\left (b e - c d\right ) \left (- 2 A c^{2} d + B b^{2} e + B b c d\right ) \log{\left (x + \frac{- 2 A b^{2} c d e + 2 A b c^{2} d^{2} - B b^{2} c d^{2} + \frac{b \left (b e - c d\right ) \left (- 2 A c^{2} d + B b^{2} e + B b c d\right )}{c}}{- 4 A b c^{2} d e + 4 A c^{3} d^{2} + B b^{3} e^{2} - 2 B b c^{2} d^{2}} \right )}}{b^{3} c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(e*x+d)**2/(c*x**2+b*x)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.279024, size = 225, normalized size = 2.08 \[ \frac{{\left (B b d^{2} - 2 \, A c d^{2} + 2 \, A b d e\right )}{\rm ln}\left ({\left | x \right |}\right )}{b^{3}} - \frac{{\left (B b c^{2} d^{2} - 2 \, A c^{3} d^{2} + 2 \, A b c^{2} d e - B b^{3} e^{2}\right )}{\rm ln}\left ({\left | c x + b \right |}\right )}{b^{3} c^{2}} - \frac{A b c^{2} d^{2} -{\left (B b c^{2} d^{2} - 2 \, A c^{3} d^{2} - 2 \, B b^{2} c d e + 2 \, A b c^{2} d e + B b^{3} e^{2} - A b^{2} c e^{2}\right )} x}{{\left (c x + b\right )} b^{2} c^{2} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^2/(c*x^2 + b*x)^2,x, algorithm="giac")
[Out]